#!/usr/bin/env python3
#-*- coding:utf-8 --

def application(enviro,start_response):
    start_response('200 OK',[('Content-Type','text/html')])
    body = '<h1>Hello,%s!</h1>' % (enviro['PATH_INFO'][1:] or 'web')
    return [body.encode('utf-8')]